#this helps with the rendering

R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Markdown File

Here is a subtitle

smaller

####smallest

#use back ticks times 3 for code bits #use the green arrows to the right to run bits # use {r echo = FALSE} if you don’t want that bit of code to show up. {r message = FALSE} to suppress messages. A few other options.

print("hello")
## [1] "hello"

Including Plots

You can also embed plots, for example:

library(tidyverse)
## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ──
## ✔ ggplot2 3.4.0      ✔ purrr   1.0.1 
## ✔ tibble  3.1.8      ✔ dplyr   1.0.10
## ✔ tidyr   1.2.1      ✔ stringr 1.5.0 
## ✔ readr   2.1.3      ✔ forcats 0.5.2 
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
comp <- read.csv('../data/compensation.csv')
glimpse(comp)
## Rows: 40
## Columns: 3
## $ Root    <dbl> 6.225, 6.487, 4.919, 5.130, 5.417, 5.359, 7.614, 6.352, 4.975,…
## $ Fruit   <dbl> 59.77, 60.98, 14.73, 19.28, 34.25, 35.53, 87.73, 63.21, 24.25,…
## $ Grazing <chr> "Ungrazed", "Ungrazed", "Ungrazed", "Ungrazed", "Ungrazed", "U…
ggplot(comp, aes(x = Root, y = Fruit)) +
  geom_point() +
  facet_wrap(~ Grazing)

#sup, Ewan. if you can see this, I have been in your internets.

sprawk

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.